package com.un.ebs.core.config;

import org.jasypt.encryption.StringEncryptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class EncryptionConfig {
    @Bean("jasyptStringEncryptor")
    public StringEncryptor stringEncryptor() {
        System.out.println("----------开始对yml配置文件进行解密--------");
        EncryptorConfig desEncrypt = new EncryptorConfig();//调用我们自己实现的类即可
        return desEncrypt;
    }
}
